home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / linux-bo / dless-li / root.no / etc / rc.d / rc.inet2 < prev    next >
Text File  |  1995-04-28  |  2KB  |  110 lines

  1. #! /bin/sh
  2. #
  3. # rc.inet2    This shell script boots up the entire INET system.
  4. #        Note, that when this script is used to also fire
  5. #        up any important remote NFS disks (like the /usr
  6. #        distribution), care must be taken to actually
  7. #        have all the needed binaries online _now_ ...
  8. #
  9. # Version:    @(#)/etc/rc.d/rc.inet2    2.18    05/27/93
  10. #
  11. # Author:    Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
  12. #
  13.  
  14. # Constants.
  15. NET="/usr/sbin"
  16. IN_SERV=""
  17. LPSPOOL="/var/spool/lpd"
  18.  
  19. # At this point, we are ready to talk to The World...
  20. echo "Mounting remote file systems..."
  21. /sbin/mount -a -t nfs        # This may be our /usr runtime!!!
  22.  
  23. echo -n "Starting daemons:"
  24. # Start the SYSLOGD/Klogd daemons.  These must come first.
  25. if [ -f ${NET}/syslogd ]
  26. then
  27.  echo -n " syslogd"
  28.  ${NET}/syslogd
  29.  echo -n " klogd"
  30.  ${NET}/klogd
  31. fi
  32.  
  33. # Start the SUN RPC Portmapper.
  34. # if [ -f ${NET}/rpc.portmap ]
  35. # then
  36. #  echo -n " portmap"
  37. #  ${NET}/rpc.portmap
  38. # fi
  39.  
  40. # Start the INET SuperServer
  41. if [ -f ${NET}/inetd ]
  42. then
  43.  echo -n " inetd"
  44.  ${NET}/inetd
  45. else
  46.  echo "no INETD found.  INET cancelled!"
  47.  exit 1
  48. fi
  49.  
  50. # Start the NAMED/BIND name server.
  51. # if [ -f ${NET}/named ]
  52. # then
  53. #  echo -n " named"
  54. #  ${NET}/named
  55. # fi
  56.  
  57. # Start the ROUTEd server.
  58. # if [ -f ${NET}/routed ]
  59. # then
  60. #  echo -n " routed"
  61. #  ${NET}/routed -g -s
  62. # fi
  63.  
  64. # Start the RWHO server.
  65. # if [ -f ${NET}/rwhod ]
  66. # then
  67. #  echo -n " rwhod"
  68. #  ${NET}/rwhod -t -s
  69. # fi
  70.  
  71. # Start the various INET servers.
  72. for server in ${IN_SERV}
  73. do
  74.  if [ -f ${NET}/${server} ]
  75.  then
  76.   echo -n " ${server}"
  77.   ${NET}/${server}
  78.  fi
  79. done
  80.  
  81. # # Start the various SUN RPC servers.
  82. # if [ -f ${NET}/rpc.portmap ]
  83. # then
  84. #  if [ -f ${NET}/rpc.mountd ]
  85. #  then
  86. #   echo -n " mountd"
  87. #   ${NET}/rpc.mountd
  88. #  fi
  89. #  if [ -f ${NET}/rpc.nfsd ]
  90. #  then
  91. #   echo -n " nfsd"
  92. #   ${NET}/rpc.nfsd
  93. #  fi
  94. #  # Fire up the PC-NFS daemon(s).
  95. #  if [ -f ${NET}/rpc.pcnfsd ]
  96. #  then
  97. #   echo -n " pcnfsd"
  98. #   ${NET}/rpc.pcnfsd ${LPSPOOL}
  99. #  fi
  100. #  if [ -f ${NET}/rpc.bwnfsd ]
  101. #  then
  102. #   echo -n " bwnfsd"
  103. #   ${NET}/rpc.bwnfsd ${LPSPOOL}
  104. #  fi
  105. # fi
  106.  
  107. echo
  108.  
  109. # Done!
  110.